load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")

go_library(
    name = "depsgen_lib",
    srcs = [
        "config.go",
        "depsgen.go",
        "generator.go",
        "template.go",
    ],
    importpath = "github.com/stackb/rules_proto/cmd/depsgen",
    visibility = ["//visibility:private"],
)

go_binary(
    name = "depsgen",
    embed = [":depsgen_lib"],
    visibility = ["//visibility:public"],
)
